package swe.article;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import swe.user.User;

public class ArticleBid implements Serializable{

	private User user;
	//private Article article;
	
	private double bidValue;
	private long created;
	
	SimpleDateFormat sdf = new SimpleDateFormat("dd. MMM yyyy, HH:mm");
	
	public ArticleBid(double bidValue, User user) {
		
		this.created = System.currentTimeMillis();
		this.bidValue = bidValue;
		this.user = user;
		
	}


	public User getUser() {
		return user;
	}


	public double getBidValue() {
		return bidValue;
	}


	public String getCreatedHuman() {
		return sdf.format(new Date(this.created))+" Uhr";
	}


}
